/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package core;

/**
 *
 * @author Ahlberg
 */
public abstract class SuperSchool {

    private long id;
    private String name, description, webLink;
    /**
     * Default constructor.
     */
    public SuperSchool()
    {        
    }
    /**
     * 
     * @param id
     * @param name
     * @param description
     * @param webLink
     */
    public SuperSchool(long id, String name, String description, String webLink)
    {
        this.id = id;
        this.name = name;
        this.description = description;
        this.webLink = webLink;
    }

    /*
     *  Get methods
     */
    /**
     *
     * @return
     */
    public long getId(){
        return id;
    }
    /**
     *
     * @return
     */
    public String getName(){
        return name;
    }
    /**
     *
     * @return
     */
    public String getDescription(){
        return description;
    }
    /**
     *
     * @return
     */
    public String getWebLink(){
        return webLink;
    }

    /*
     *  Set methods
     */
    /**
     *
     * @param id
     */
    public void setId(long id){
        this.id = id;
    }
    /**
     *
     * @param name
     */
    public void setName(String name){
        this.name = name;
    }
    /**
     *
     * @param description
     */
    public void setDescription(String description){
        this.description = description;
    }
    /**
     *
     * @param webLink
     */
    public void setWebLink(String webLink){
        this.webLink = webLink;
    }
    /**
     *
     * @param s
     * @return
     */
    public boolean equals(SuperSchool s)
    {
        if(s == null)
            return false;
        if(this == s)
            return true;
        return id == s.id;
    }
    /**
     *
     * @return
     */
    @Override
    public String toString()
    {
        return  "id: " + id + "\n" +
                "name: " + name + "\n" +
                "description: " + description + "\n" +
                "webLink: " + webLink + "\n";
    }

}
